import upload from "@/utils/upload";
import request from "@/utils/request";

const urlMiddlePath = "/tools/upload/";

// 文件上传
export function uploadSingleApi(data) {
  return upload({
    url: urlMiddlePath + "single",
    name: data.name,
    filePath: data.filePath,
  });
}

//文件删除
export function deleteFileByPathApi(data) {
  return request({
    url: urlMiddlePath + "delete-file",
    method: "post",
    data,
  });
}
